load(
    "@nazel//:nazel_build.bzl",
    "nazel_cc_binary",
    "nazel_cc_library",
)

package(default_visibility = ["//visibility:public"])

nazel_cc_library(
    name = "request",
    srcs = [
        "http.cc",
        "root_certificates.cc",
        "session.cc",
        "session_pool.cc",
    ],
    hdrs = [
        "http.h",
        "root_certificates.h",
        "session.h",
        "session_pool.h",
        "i_session_pool.h",
        "util.h",
    ],
    linkopts = [
        "-lboost_coroutine",
        "-lssl",
        "-lcrypto",
    ],
    deps = [
        "//cc/coin2/base",
    ],
)

nazel_cc_binary(
    name = "curl_example",
    srcs = ["curl_example.cc"],
    deps = [":request"],
)

nazel_cc_binary(
    name = "test_https_conn",
    srcs = ["test_https_conn.cc"],
    deps = [":request"],
)
